package error.堆溢出;

import java.util.ArrayList;
import java.util.List;

public class MxOutOfMemory {
    public static void main(String[] args) {
        List<MxOutOfMemory> list = new ArrayList<>();
        while (true) {
            list.add(new MxOutOfMemory());
        }
    }
}
